import { getFldm } from '@/utils/get-fldm'
export const formItem = async (key: string) => {
  const obj: any = {
    rzcx: [
      {
        disabled: false,
        label: '日志类型',
        prop: 'rzlxbm',
        type: 'select',
        placeholder: '请选择日志类型',
        options: await getFldm('gd070'),
        iswm: 'Y',
      },
      {
        disabled: false,
        label: '操作类型',
        prop: 'rzczlxbm',
        type: 'select',
        placeholder: '请选择操作类型',
        options: await getFldm('gd069'),
        iswm: 'Y',
      },
      {
        disabled: false,
        label: '操作人',
        prop: 'czrxm',
        type: 'input',
        placeholder: '请输入操作人',
        iswm: 'Y',
      },
      {
        disabled: false,
        label: '操作时间',
        prop: 'cz-rq',
        type: 'daterange',
        placeholderStart: '请选择开始日期',
        placeholderEnd: '请选择结束日期',
        iswm: 'Y',
      },
      {
        disabled: false,
        label: '操作IP',
        prop: 'czip',
        type: 'input',
        placeholder: '请输入操作IP',
        iswm: 'Y',
      },
      {
        disabled: false,
        label: '关键字',
        prop: 'gjz',
        type: 'input',
        placeholder: '请输入关键字',
        iswm: 'Y',
      },
    ],
  }
  return obj[key]
}
